package com.utilities;

import java.util.HashMap;
import java.util.Map;

public class TicketCode {

    public Map<String,String> seattype=null;
    
	public TicketCode(){
		
		seattype=new HashMap<String,String>();
		seattype.put("yz_num", "1");
		seattype.put("rz_num", "2");
		seattype.put("rw_num", "4");
		seattype.put("yw_num", "3");
		seattype.put("gr_num", "6");
		seattype.put("zy_num", "M");
		seattype.put("ze_num", "O");
		seattype.put("tz_num", "P");
		seattype.put("swz_num", "1");
		seattype.put("wz_num", "WZ");
		
	}
	
	public String getTicketCode(String ticket){
		return seattype.get(ticket);
	}
	
	public static void main(String[] args) {
		String number=new TicketCode().seattype.get("rz_num");
		System.out.println("number is:"+number);
	}

}
